<!--
 * @Descripttion:
 * @version:
 * @Author: cxguo
 * @Date: 2019-08-02 15:03:05
 * @LastEditors: cxguo
 * @LastEditTime: 2020-07-24 19:14:12
 -->
<template>
  <div class="app-container">
    <Tab
      v-model="currentIndex"
      :is-show-date="false"
      :texts="['下载模板','上传文件']"
    />
    <div class="padding20 border-gay">
      <component :is="compName" />
    </div>
  </div>
</template>
<script>

import { oftenuse } from '@/libs/mixins'
import Tab from '@/views/components/Tab'
import DownLoad from './download'
import UpLoad from './upload'

export default {
  name: 'GoodsImport',
  components: { Tab, DownLoad, UpLoad },
  filters: {
  },
  mixins: [oftenuse],
  props: {
  },
  data() {
    return {
      currentIndex: 0
    }
  },
  computed: {
    'compName': function() {
      if (this.currentIndex === 0) return 'DownLoad'
      return 'UpLoad'
    }
  },
  watch: {
  },
  created() {
  },
  methods: {
    btnDownLoad() {

    },
    btnUpLoad() {

    },
    onTabClick() {

    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss">
</style>
